package sdkj_web;

import java.sql.SQLException;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sdkj.Entity.bill.Bill;
import com.sdkj.service.bill.IBillService;

public class Springtest {
	
	private ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
	
	
//	@Test
//	public void testSave() throws SQLException{
//		IBillService billService=(IBillService)ac.getBean("billServiceImpl");
//		IBillService bil=ac.getBean("billServiceImpl",IBillService.class);
//		Bill t=new Bill();
//		t.setCastTime("2016-02-22");
//		t.setMoney(28);
//		billService.save(t); 
//	}
	
	@Value("${abc}")
	private String val;
	
	@Test
	public void test(){
		System.out.println(val);
	}
	
	
}
